﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model.Util;
namespace Xproject.Util
{
 public    class Cache_IndexCategory
    {
        
        public static string CACHE_KEY_INDEXCATEGORY = "CACHE_KEY_INDEXCATEGORY_KANGDAO";
    

        public static List<IndexCategory> INDEXCATEGORY_KANGDAO
        {
            get
            {
                return System.Web.HttpRuntime.Cache[CACHE_KEY_INDEXCATEGORY] as List<IndexCategory>;

            }
            set
            {
                System.Web.HttpRuntime.Cache.Insert(CACHE_KEY_INDEXCATEGORY, value, null, DateTime.Now.AddMonths(1), System.Web.Caching.Cache.NoSlidingExpiration);
            }
        }

        public static void ClearAd_INDEXCATEGORY_KANGDAO()
        {
            System.Web.HttpRuntime.Cache.Remove(CACHE_KEY_INDEXCATEGORY);
        }
    }
}
